<!--
 * @Author: dongdong.wu
 * @Date: 2021-03-11 17:17:35
 * @Description: 图标+文字的按钮
-->
<script>
export default {
  name: "ButtonIcon",
  props: {
    title: String,
    icon: String
  },
  render(h) {
    return h(
      "el-button",
      {
        props: {
          type: "text",
          icon: this.icon
        },
        on: {
          click: this.handleButton
        }
      },
      this.title
    );
  },
  methods: {
    handleButton() {
      this.$emit("b-click");
    }
  }
};
</script>